{% extends "users/base.html" %}
{% load static %}
{% block link %}
    <link rel="stylesheet" href="{% static 'css/fun/register.css' %}">
    <link rel="stylesheet" href="{% static 'css/fun/header.css' %}">
{% endblock %}
{% block header %}
    <div class="left">
        <a href="{% url 'homepage' %}">首页</a>
    </div>
    {% load common_extras %}
    <div class="right">
        {{ user.name|mydefault:'登录'|mycapfirst }}--{% current_time '%Y-%m-%d %H:%M:%S' %}
    </div>
{% endblock %}
{% block main %}
    <div class="bg">
        <div class="slogan">
            <h1>欢迎注册</h1>
            <h2>&emsp;</h2>
            <h2>&emsp;</h2>
            <h2>记录-平台</h2>
            <h4>记录—>美好瞬间</h4>
        </div>
        <div class="form-box">
            <div class="main">
                <h2>注册</h2>
                <form method="post">
                    {% csrf_token %}
                    <ul>
                        {{ form.as_ul }}
                        {{ message }}
                        <input type="submit" value="立即注册" class="submit-btn">
                    </ul>
                </form>
                <div class="bottom-box">
                    <a href="{% url 'login' %}">注册成功，立即登录</a>
                </div>
            </div>
        </div>
    </div>
{% endblock %}